package com.jt.www.enums.endorse;

/**
 * @author lq
 * @create 2019-12-31 10:11
 */
public enum PersonTypeEnum {

    TYPE_01("01", "管理员"),
    TYPE_02("02", "企业联系人(成员)"),
    TYPE_06("06", "安全巡查员"),
    TYPE_07("07", "安全整改员"),
    TYPE_08("08", "风管所工程师"),
    TYPE_09("09", "隐患排查业务员");


    private String code;
    private String msg;

    PersonTypeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static String getMsgByCode(String code) {
        String msg = "";
        for (PersonTypeEnum personTypeEnum : PersonTypeEnum.values()) {
            if (code.equals(personTypeEnum.code)) {
                msg = personTypeEnum.msg;
                break;
            }
        }
        return msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
